package com.hook3.pianke.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;

import com.hook3.pianke.R;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * 关于片刻
 * Created by chai on 2015/12/11.
 */
public class PianKeInclude extends Activity {
     private ImageView iv_back_title;
    private TextView title_name;
    private WebView about_webview;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about_inner);
        iv_back_title = (ImageView) findViewById(R.id.iv_back_title);
        title_name = (TextView) findViewById(R.id.title_name);
        about_webview = (WebView) findViewById(R.id.about_webview);
        title_name.setText("关于片刻");
        iv_back_title.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        WebSettings wSet = about_webview.getSettings();
        wSet.setJavaScriptEnabled(true);
        wSet.setBuiltInZoomControls(true);
        wSet.setUseWideViewPort(true);
        about_webview.loadUrl("file:///android_asset/about.html");


    }

}
